package com.yunduo.world.factory;

import com.yunduo.world.entity.EntityInfo;
import io.netty.channel.ChannelHandlerContext;
import lombok.Data;

/**
 * 通道数据处理类
 */
@Data
public abstract class ChannelWorker {
    // 上下文
    private ChannelHandlerContext ctx;
    // 发送的数据
    private EntityInfo.Entity msg;

    // 配置数据
    public void config(ChannelHandlerContext ctx, EntityInfo.Entity msg) {
        this.ctx = ctx;
        this.msg = msg;
    }

    public void execute(){};
}
